package com.linxianqin.springbootVue.domain.convert;


import com.linxianqin.springbootVue.domain.dto.SysDeptDTO;
import com.linxianqin.springbootVue.domain.entity.SysDept;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * 功能描述：SysMenu转化接口
 * @author lxq
 * @version 1.00
 * @Date 2020/12/13
 */
@Mapper
public interface SysDeptConvert {
    SysDeptConvert INSTANCE = Mappers.getMapper(SysDeptConvert.class);
    @Mappings({
            @Mapping(target = "children",ignore = true),
    })
    SysDeptDTO entity2dto(SysDept sysMenu);
    List<SysDeptDTO> entity2dto(List<SysDept> deptList);
    SysDept dto2entity(SysDeptDTO sysMenu);
}
